//
//  BMSNetworkEnvironment.m
//  BMSSDK
//
//  Created by YeJary on 2025/4/28.
//

#import "BMSNetworkEnvironment.h"

static NSString *kBaseDevUrl = @"https://test-sapi.yarkgame.com";

static NSString *kBaseProUrl = @"https://game.zuiqiangyingyu.net/";

@interface BMSNetworkEnvironment()


@end

@implementation BMSNetworkEnvironment

- (void)switchEnvironment:(BMSNetworkEnvironmentType)envType {
    self.currentEnvironment = envType;
    [self updateBaseURL];}

- (NSString *)currentBaseURL {
    return self.baseURL;
}

- (void)updateBaseURL {
    switch (self.currentEnvironment) {
        case BMSNetworkEnvironmentTypeDevelop:
            self.baseURL = kBaseDevUrl;
            break;
        case BMSNetworkEnvironmentTypeProduction:
            self.baseURL = kBaseProUrl;
            break;
    }
}

@end
